package run.microservice.stock.controller;




import run.microservice.stock.model.entity.Dictionary;
import run.microservice.stock.service.DictionaryService;
import run.microservice.stock.dao.DictionaryDAO;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

/**
 * 字典表(Dictionary)表控制层
 *
 * @author makejava
 * @since 2024-04-23 15:21:00
 */
@RestController
@RequestMapping("dictionary")
public class DictionaryController {
    /**
     * 服务对象
     */
    @Autowired
    private DictionaryService dictionaryService;

    /**
     * 服务对象
     */
    @Autowired
    private DictionaryDAO dictionaryDAO;

    
    /**
     * 分页查询所有数据
     * @return 所有数据
     */
    @GetMapping
    public List<Dictionary> selectAll() {
        return this.dictionaryDAO.list();
    }

}

